<?php
$id=$_GET['id'];
//echo $id;
$dbh=new PDO('mysql:host=localhost;dbname=gaofei','root','root');
$sql="delete from novel where id='$id'";
$arr=$dbh->exec($sql);
if($arr)
{
    header("location:SHOW.PHP");
}
else{
    echo "删除失败";
}
